package com.mini.mysql.repository;

import com.mini.mysql.model.Dept;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 */
@Repository
public interface DeptRepository extends JpaRepository<Dept, Long> {

    List<Dept> findAllByPid(Long pid);
}
